package com.thomasmoerman.dci.tmc

trait MoneySink {
  
  def deposit(amount: Double)
  
  def updateLog(msg: String, amount: Double)
  
}

trait MoneySinkProvider {
  this: UpdatableAccountAspect =>
  
  def getMoneySink(accountId: Long) = new Account(accountId) with UpdatableAccount with MoneySink
  
}